package com.question.pojo.vo;

import com.question.pojo.entity.Blank;
import com.question.pojo.entity.Choice;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QuestionVO implements Serializable {

    private Integer questionId;

    private String questionType;
    private String content;
    private Integer baseScore;
    private Double weight;
    private LocalDateTime createdAt;
    private Integer createdBy;
    private String creator = "系统管理员";
    private Integer majorId;
    private Integer categoryId;
    private String majorName;
    private String categoryName;

//    private QuestionCategories questionCategories;
//    private QuestionBlanks questionBlanks;
//    private List<QuestionChoices> questionChoicesList;
//    private boolean isCollected; //题目是否被收藏
//    private Integer answerTotal;
//    private String correctRate;

    // 选择题选项
    private List<Choice> choices;
    // 填空题空位
    private List<Blank> blanks;

    private Integer totalAttempts; // 总答题次数
    private Integer correctAttempts; // 正确次数
    private Double correctRate; // 正确率
    private Integer favoriteCount; // 收藏人数
}